package cn.tedu.egweibo3.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class WeiboDTO {
    @ApiModelProperty(value = "微博内容")
    @NotNull(message = "微博内容不能为空")
    @Size(min = 1,max = 140,message = "微博内容长度必须在1-140之间")
    private String content;
}
